/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.guobo.entity;

import java.util.Date;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 读写器Entity
 * create sequence seq_on_rw
  increment by 1  
  start with 1  
  nomaxvalue  
  nocycle  
  nocache;
 * @author wudavid
 * @version 2017-03-09
 */
public class Rw extends DataEntity<Rw> {
	
	private static final long serialVersionUID = 1L;
	private String code;		// 编码,从sequence中取值
	private String name;		// 名称
	private String spec;		// 规格
	private String manufacturer;		// 生产厂家
	private Location location;//位置
	private String status;    //读写器状态,0正常,1异常
	private Date faultTime; //读写器状态变更时间	
	private String type;    //读写器类型	
	private String address; //读写器IP地址
	/**
	 * 布控状态 位置信息未上传0,上传成功未布控3,布控成功1,取消布控4,暂停布控2
	 */
	private String dispatchStatus; 
	
	private String ant;//天线,1,3,7,15	
	
	
	public String getAnt() {
		return ant;
	}

	public void setAnt(String ant) {
		this.ant = ant;
	}

	public String getDispatchStatus() {
		return dispatchStatus;
	}

	public void setDispatchStatus(String dispatchStatus) {
		this.dispatchStatus = dispatchStatus;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	public Date getFaultTime() {
		return faultTime;
	}

	public void setFaultTime(Date faultTime) {
		this.faultTime = faultTime;
	}

	public Location getLocation() {
		return location;
	}

	public void setLocation(Location location) {
		this.location = location;
	}

	public Rw() {
		super();
	}

	public Rw(String id){
		super(id);
	}

	@Length(min=0, max=32, message="编码长度必须介于 0 和 32 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=64, message="名称长度必须介于 0 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=32, message="规格长度必须介于 0 和 32 之间")
	public String getSpec() {
		return spec;
	}

	public void setSpec(String spec) {
		this.spec = spec;
	}
	
	@Length(min=0, max=64, message="生产厂家长度必须介于 0 和 64 之间")
	public String getManufacturer() {
		return manufacturer;
	}

	public void setManufacturer(String manufacturer) {
		this.manufacturer = manufacturer;
	}
	
}